<template>
  <el-pagination
    background
    layout="total, prev, pager, next, jumper"
    :total="total"
    :page-size="pageSize"
    :current-page.sync="currentPage"
    @current-change="changePage"
  ></el-pagination>
</template>

<script>
export default {
  props: {
    total: {
      type: Number,
      default: 100,
    },
    pageSize: {
      type: Number,
      default: 10
    },
    currentPage: {
      type: Number,
      default: 1
    }
  },
  methods: {
    changePage(val) {
      this.$emit('changePage',val)
    }
  }
}
</script>

<style>

</style>